<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> 
    <?php  echo $html->css('menu.css');?>
    <?php echo $this->Html->script(array('jquery.js', 'lytebox.js' ));?>

	<?php echo $this->Html->charset(); ?>
	<title><?php echo $title_for_layout; ?></title>
	<?php
		echo $this->Html->meta('icon');
		//echo $this->Html->css('cake.generic');
		echo $this->Html->css(array('reset', 'text', 'grid', 'layout', 'nav'));
		echo '<!--[if IE 6]>'.$this->Html->css('ie6').'<![endif]-->';
		echo '<!--[if IE 7]>'.$this->Html->css('ie').'<![endif]-->';
		echo $this->Html->script(array('jquery-1.3.2.min.js', 'jquery-ui.js', 'jquery-fluid16.js','prototype.js','blockUI.js'));
		echo $scripts_for_layout;
	?>
</head>
<body>



		<div class="container_16">
                <div style="text-align: center; width: 450px;">
                    <?php 
                    echo $html->image('pronacoms.png',
                                array('alt' =>'Logo',
                                     'title' => 'PRONACOM',
                                      'width'=>'200',
                                       'height'=>'70')
                                );
                    ?>
		</div>
		<div style="float: right; margin-top: -68px;">
                    <?php 
                    echo $html->image('logo.png',
                                array('alt' =>'Logo',
                                     'title' => 'PRONACOM',
                                     'width'=>'270',
                                     'height'=>'70')
                                );
                    ?>
		</div>
                    
		<div class="clear"></div>
                <?php if($session->read('Auth.User.id')) { ?>
                <div id="nombre">Usuario: <?php echo($session->read('Auth.User.username'));?></div>
                <?php } ?>
		<div class="grid_16">
			 
			 
			 
			 <div id="menu">
			 <div style="width: 683px;">
    <ul class="menu">
		<li><a style="cursor: default;"><span style="cursor: default;">Secuestros</span></a>
		<div>
                    <ul>
                        <li><a href="<?php echo $this->Html->url('/masters/agregar',true);?>"><span>Nuevo Secuestro</span></a></li>
                        <li><a href="<?php echo $this->Html->url('/masters',true);?>"><span>Listar Secuestros</span></a></li>
                    </ul>
                </div>
		</li>
        <li><a style="cursor: default;" class="parent"><span style="cursor: default;">Busquedas</span></a>
            <div><ul>
                <li><a href="<?php echo $this->Html->url('/searches/add',true);?>" class="parent"><span>Busqueda Individual</span></a></li>
                <?php if($session->read('perfil')=='0'){?>
                <li><a href="<?php echo $this->Html->url('/reports',true);?>"><span>Reportes</span></a></li>
                <?php } ?>
                </ul></div>
        </li>
         <?php if($session->read('perfil')=='0'){?>
        <li><a style="cursor: default;"><span style="cursor: default;">Configuracion</span></a>
            <div><ul>
                <li><a href="<?php echo $this->Html->url('/states',true);?>"><span>Estados</span></a></li>
                <li><a href="<?php //echo $this->Html->url('/vehicles',true);?>"><span>Vehiculos</span></a>
				<div>
					<ul>
						<li><a href="<?php echo $this->Html->url('/brands',true);?>"><span>Marca</span></a></li>
						<li><a href="<?php echo $this->Html->url('/models',true);?>"><span>Modelo</span></a></li>
						<li><a href="<?php echo $this->Html->url('/vehicles_types',true);?>"><span>Tipo</span></a></li>
					</ul>
				</div>
				</li>
				<li><a href="<?php //echo $this->Html->url('/provinces',true);?>"><span>Datos Judiciales</span></a>
				<div>
					<ul>
						<li><a href="<?php echo $this->Html->url('/jurisdictions',true);?>"><span>Jurisdicciones</span></a></li>
						<li><a href="<?php echo $this->Html->url('/charters',true);?>"><span>Fueros</span></a></li>
						<li><a href="<?php echo $this->Html->url('/placements',true);?>"><span>Dpto Judicial</span></a></li>
						<li><a href="<?php echo $this->Html->url('/courts',true);?>"><span>Juzgados</span></a></li>
						<li><a href="<?php echo $this->Html->url('/secretaries',true);?>"><span>Secretarias</span></a></li>
						<li><a href="<?php echo $this->Html->url('/police_stations',true);?>"><span>Dependencia Policial</span></a></li>
					</ul>
				</div>
				</li>
				<li><a href="<?php echo $this->Html->url('/desposits',true);?>"><span>Depositos</span></a>
				<div>
					<ul>
						<li><a href="<?php echo $this->Html->url('/locations',true);?>"><span>Localidades</span></a></li>
						<li><a href="<?php echo $this->Html->url('/provinces',true);?>"><span>Provincias</span></a></li>
					</ul>
				</div>
				</li>
                <li><a href="<?php echo $this->Html->url('/users/add',true);?>"><span>Usuarios</span></a></li>
			</ul></div>
		</li>
       <?php } ?>
		
		<?php  echo $this->Html->script('fileuploader');
                             if($session->read('Auth.User.id')) { 
                              ?>
							  <li><a href="<?php echo $this->Html->url('/users/logout',true);?>"><span>Salir</span></a></li>
							  <?php
                              }else { ?>
                              <li><a href="<?php echo $this->Html->url('/users/login',true);?>"><span>Ingresar</span></a></li>
                             <?php }?>
		

		
    </ul>
</div>
			 
		</div>
		</div>

		
		<div class="clear" style="height: 10px; width: 100%;"></div>
		        <?php echo $this->Session->flash('auth'); ?>
			<?php echo $this->Session->flash(); ?>

			<?php echo $content_for_layout; ?>
		
		<div class="clear"></div>
	</div>
    <div id="footer"><hr></hr> </div>
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>
